package com.song.oa.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author tonysong
 * @since 2024-03-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_department")
public class Department extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 部门名称
     */
    private String name;

    /**
     * 父id
     */
    @TableField("parentId")
    private Integer parentid;

    /**
     * 路径
     */
    @TableField("depPath")
    private String deppath;

    /**
     * 是否启用
     */
    private Boolean enabled;

    /**
     * 是否上级
     */
    @TableField("isParent")
    private Boolean isparent;


}
